package com.example.demo.model;

import com.baidu.bas.annotation.Erupt;
import com.baidu.bas.annotation.EruptField;
import com.baidu.bas.annotation.sub_field.Edit;
import com.baidu.bas.annotation.sub_field.View;
import com.baidu.bas.upms.model.base.HyperModel;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author liuzhenchuan@foxmail.com
 * @date 2020/12/22
 */
@Getter
@Setter
@Erupt(name = "任务总览")
@Table(name = "ma_task_overview_report")
@Entity
public class TaskOverviewReport extends HyperModel {
    /**
     * 累计进入流程人数
     */
    @EruptField(
            views = @View(title = "累计进入流程人数"),
            edit = @Edit(title = "累计进入流程人数")
    )
    int inUserNum;
    /**
     * 流程历时分钟
     */
    @EruptField(
            views = @View(title = "流程历时分钟"),
            edit = @Edit(title = "流程历时分钟")
    )
    int durationInMinutes;
    /**
     * 平均处理时长
     */
    @EruptField(
            views = @View(title = "平均处理时长"),
            edit = @Edit(title = "平均处理时长")
    )
    int avgProcessMinutes;
    /**
     * 发送成功人数
     */
    @EruptField(
            views = @View(title = "发送成功人数"),
            edit = @Edit(title = "发送成功人数")
    )
    int successNum;
    /**
     * 发送失败人数
     */
    @EruptField(
            views = @View(title = "发送失败人数"),
            edit = @Edit(title = "发送失败人数")
    )
    int failedNum;
    /**
     * 达标人数
     */
    @EruptField(
            views = @View(title = "达标人数"),
            edit = @Edit(title = "达标人数")
    )
    int goalUserNum;

}
